package day013.reference;

public class PlayerTest {
    public static void main(String[] args) {
        show1(new Ipod());
        show2(new Ipod());
        show3(new Ipod());

        Student s = new Student();
        s.setPlayer(new Ipod());
        s.setMp3Player(new Ipod());
        s.setIpod(new Ipod());
    }

    public static void show1(Player player) {
        player.play();
    }

    public static void show2(Mp3Player player) {
        player.play();
    }

    public static void show3(Ipod player) {
        player.play();
    }
}
